package demo.marshal;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Marshal {
    private static byte[] bytes = null;
    public static void doMarshal() {
        if (bytes == null) {
            try {
                bytes = Marshal.class.getClassLoader().getResourceAsStream("somevo.json").readAllBytes();
            }catch (IOException e) {

            }
        }
        ObjectMapper om = new ObjectMapper();

        try {
            om.readValue(bytes, SomeVO[].class);
        } catch (IOException e) {
            //
        }
    }
}
